package cn.livingCloud.entity.content;


import cn.livingCloud.utils.UuidGenerator;
import cn.livingCloud.wechat.entity.WechatButton;
import org.springframework.util.StringUtils;

import java.util.Date;

/**
 * Created by sujiantang on 2016/1/6.
 */
public class Button extends WechatButton {

    private String uuid = UuidGenerator.generate();
    private Date createTime;
    private String parentId;

    public Button() {
    }

    public String getUuid() {
        return uuid;
    }

    public Button setUuid(String uuid) {
        this.uuid = uuid;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public Button setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public String getParentId() {
        return parentId;
    }

    public Button setParentId(String parentId) {
        this.parentId = parentId;
        return this;
    }

    public boolean isParent() {
        return StringUtils.isEmpty(parentId);
    }
}
